package sj;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component("dialogue")
public class Dialogue {
    @Resource
    public RoadFrank roadFrank = null;
    @Resource
    public ZhugeLiang zhugeLiang = null;

    public RoadFrank getRoadFrank() {
        return roadFrank;
    }

    public void setRoadFrank(RoadFrank roadFrank) {
        this.roadFrank = roadFrank;
    }

    public ZhugeLiang getZhugeLiang() {
        return zhugeLiang;
    }

    public void setZhugeLiang(ZhugeLiang zhugeLiang) {
        this.zhugeLiang = zhugeLiang;
    }

//    public Dialogue(RoadFrank roadFrank, ZhugeLiang zhugeLiang) {
//        this.roadFrank = roadFrank;
//        this.zhugeLiang = zhugeLiang;
//    }

    public void shows(){
        roadFrank.show();
        zhugeLiang.show();
    }
}


